<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    //
    protected $table = 'user';

    public $timestamps = false;

    public function getUser($uid)
    {
        return $self::where('id', $uid)->first();
    }

    public function getUsers()
    {
        return $self::orderBy('create_time','asc')->paginate(10);
    }
}
